package mybatis;

import java.util.ArrayList;
import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.edu.scau.cmi.lixiaoyuan.mybatis.entity.Student;
import cn.edu.scau.cmi.lixiaoyuan.mybatis.mapper.StudentMapper;
import cn.edu.scau.cmi.lixiaoyuan.mybatis.mapper.TeacherMapper;
import cn.edu.scau.cmi.lixiaoyuan.mybatis.sqlUtils.StudentSql;



public class MybatisTest {
	static ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-mybatis.xml");
	public static TeacherMapper teaMapper = ctx.getBean(TeacherMapper.class);
	public static StudentMapper stuMapper = ctx.getBean(StudentMapper.class);

	public static void main(String[] args) {
		//StudentSql stuSQL = new StudentSql("stu_name","xixi");
         //Student stu = stuMapper.findStudentByProperty(stuSQL.Sql2findStudentByProperty());         
        		  //System.out.println(stu.toString());
	}
}
